package com.pri.chat.adapter;

import android.content.Context;
import android.widget.ImageView;

import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.netease.nim.uikit.net.entity.VideoGiftBean;
import com.pri.chat.R;
import com.pri.chat.utils.GlideUtil;

import java.util.List;

/**
 * 描述：添加类的描述
 *
 * @author wx5e48d604c2885118
 * @time 2020/4/21
 */
public class DialogGiftAdapter extends BaseQuickAdapter<VideoGiftBean, BaseViewHolder> {


    public DialogGiftAdapter(int layoutResId, @Nullable List<VideoGiftBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, VideoGiftBean item) {
            helper.setText(R.id.tv_gift_name,item.getName());
            helper.setText(R.id.tv_gift_price,item.getPrice());
        GlideUtil.getInstance().loadHeadImg(mContext,helper.getView(R.id.iv_logo),item.getImagePath());
    }
}
